﻿using System.Collections.Generic;

namespace Birkelund.QueryStrings
{
    /// <summary>
    /// Algorithm to calculate checksum value
    /// </summary>
    public interface IChecksumCalculator
    {
        /// <summary>
        /// Calculates the checksum for string formatted tokens
        /// </summary>
        /// <param name="allTokens">Tokens (name/value) to calculate checksum for. This does not include the checksum-token itself</param>
        /// <returns>Returns the checksum in string format</returns>
        string CalculateCheckSum(IEnumerable<TokenKeyValue> allTokens);
    }
}
